//
//  OutWaterView.m
//  IphoneMapSdkDemo
//
//  Created by huck on 2017/5/22.
//  Copyright © 2017年 Baidu. All rights reserved.
//

#import "OutWaterView.h"
#import "WaterInfoView.h"
#import "AppUtils.h"
#import "HomeManager.h"

@implementation OutWaterView

+ (instancetype)initViewWithFrameView:(UIView *)view
{
    if (nil == view) {
        return nil;
    }
    OutWaterView *infoView = [[[NSBundle mainBundle] loadNibNamed:@"OutWaterView" owner:nil options:nil] firstObject];
    [infoView setFrame:CGRectMake(0, 0, view.width, view.height)];
    [view addSubview:infoView];
    return infoView;
}

-(void)awakeFromNib
{
    [super awakeFromNib];
    [self initSubview];
}

-(void)initSubview{
}

-(void)setContent:(PositionInfoData*)data
{
    _nameLabel.text = data.dirtyName;
    _typeLabel.text = data.dirtyType;
    _directLabel.text = data.isDirect ?@"是":@"否";
    _locationLabel.text = data.dirtyPlace;
}


@end

